<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>调用MulSelect</title>
    <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
    <script src="mulSelect.js"></script>

</head>
<body>
        <div class="container">
                <form id="_form" action="${ctx}/statistics/statistics_list?" method="post">
                    <div class="screening">
                        <dl>
                            <dd>   
                               <span>姓名：<input type="text" style="width: 160px;"></span>
                               <span>人员编号：<input type="text" style="width: 160px;"></span>
                               <input id="mulSelect" type="button" value="组合条件" >
                               <input id="jh" type="button" value="下载月报" >
                               
                            </dd>
                        </dl>
                    </div>
                  </form>
                   
        </div>
</body>
<script>
    $(function () {
        //MulSelect
        $('#mulSelect').click(function () {
            $('#mulSelect').MulSelect(
                '1',
                {
                    'lalla': ['范围','date'],
                    '类型1': ['等于1','text'],
                    '名字2': ['等于2', '大2', '小于2','text'],
                    '时间': ['等于3', '大于3', '小于3', '范围','date'],
                    '装货': ['范围','大于','date']
                }
            )
            $('#sure').click(function(){
                //获取返回值
               console.log($('#mulSelect').result())
            })
        })
        
        //
        $('#jh').click(function () {
            $('#jh').MulSelect('2',
                {
                    '类': ['等于1','text'],
                    '名': ['等于2', '大2', '小于2','text'],
                    '时间': ['等于3', '大于3', '小于3', '范围','date'],
                }
            )
            $('#sure').click(function(){
                //获取返回值
               console.log($('#jh').result())
            })
        })
    });
</script>

</html>